package t20240511;

import java.util.concurrent.CompletableFuture;

public class FutureTest {


    public static void main(String[] args) {

        CompletableFuture future = new CompletableFuture();


        future.whenComplete((r,t) -> {
            System.out.println("c1");
        });

        future.whenComplete((r,t) -> {
            System.out.println("c2");
        });


        future.complete(123);

    }
}
